home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 20 / Cream of the Crop 20 (Terry Blount) (1996).iso / os2 / epmgcc30.zip / GCCMENU.E < prev    next >
Text File  |  1996-07-06  |  2KB  |  38 lines

  1. /*
  2. ╔══════════════════════════════════════════════════════════════════════════════╗
  3. ║ What's it called: EPMGCC  V3.00                                              ║
  4. ║                                                                              ║
  5. ║ What does it do:  The E source code for the GCC-Interface                    ║
  6. ║                   for EPM. This file is included by PROCESSMENUINIT          ║
  7. ║                   in stdctrl.e for setting menu attributes.                  ║
  8. ║                                                                              ║
  9. ║ Who and When:     B. Bablok 12/93 - 07/96                                    ║
  10. ║                                                                              ║
  11. ╚══════════════════════════════════════════════════════════════════════════════╝
  12. */
  13.  
  14. -- since this file is included at the end of PROCESSMENUINIT (via mymnuini.e)
  15. -- we cannot put any global declarations here.  We need to use a procedure call
  16. -- to get the value of universal variables.
  17.  
  18. IF menuid=21 THEN                                           -- GCC menu ID is 21
  19. -- SetMenuAttribute( 2101, 16384, NOT gcc_project_open())   -- gray out items
  20. -- SetMenuAttribute( 2118, 16384, ??????????????)           -- select_project
  21.    SetMenuAttribute( 2102, 16384, gcc_project_open())
  22.    SetMenuAttribute( 2103, 16384, gcc_project_open())
  23.    SetMenuAttribute( 2105, 16384, gcc_is_cc_file())
  24.    SetMenuAttribute( 2106, 16384, gcc_is_cc_file())
  25.    SetMenuAttribute( 2107, 16384, gcc_project_open())
  26.    SetMenuAttribute( 2108, 16384, gcc_project_file_exists())
  27.    SetMenuAttribute( 2109, 16384, gcc_error_file_exists())
  28.    SetMenuAttribute( 2111, 16384, gcc_exe_exists())
  29.    SetMenuAttribute( 2112, 16384, gcc_exe_exists())
  30.  
  31.    SetMenuAttribute( 2114, 8192, NOT get_gcc_debug_mode())     -- set checkmark
  32.    SetMenuAttribute( 2115, 8192, NOT get_gcc_autosave_mode())
  33.    SetMenuAttribute( 2116, 8192, NOT get_gcc_verbose_mode())
  34.    SetMenuAttribute( 2117, 8192, NOT get_gcc_remove_mode())
  35.    SetMenuAttribute( 2119, 8192, NOT get_gcc_settings_mode())
  36.    RETURN
  37. ENDIF
  38.